package com.guiwu.caiguanlin.entity;

/**
 * 父类静态代码块=》子类静态代码块=》父类代码块=》父类构造方法=》子类代码块=》子类构造方法
 */
public class BaseEntity {

    static String name1 = "123";

    private String age1 = "123";


    static {
        System.out.println("父类静态参数" + name1);
        System.out.println("父类静态代码块");
    }

    {
        System.out.println("父类代码块");
        System.out.println("父类成员变量" + age1);
    }

    public BaseEntity() {
        System.out.println("父类构造方法");
    }

    public String getAge1() {
        return age1;
    }
}
